import copy

# 简单的可变类型浅拷贝
list1=[1,2,3]
print(list1)
print(id(list1))

list2 = copy.deepcopy(list1)
print(list2)
print(id(list2))

print('-------------------------')

# 嵌套的可变类型浅拷贝
list3 = [4,5,6,[7,8]]
print(list3)
print(id(list3))
print(id(list3[3]))

list4 = copy.deepcopy(list3)
print(list4)
print(id(list4))
print(id(list4[3]))